<%@ page language="java" import="java.util.*,org.model.Article,org.model.ArtAndProClass,org.model.Product" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>大家好我是拷贝忍者！Mir.刘</title>
		<link rel="stylesheet" href="css/all.css" type="text/css" media="screen">
		<link rel="stylesheet" href="css/style.css" type="text/css" media="screen">
		<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon">
		<script type="text/javascript" src="js/jquery-1.12.3.min.js"></script>
		<!-- end -->
		<style type="text/css">
			.select{
			    color: #347aeb;
			    text-decoration: none;
			    background-color: #f1f1f1;
			}
		</style>
		<script>
			function changeEdit(edit){
				$("#tableHead").text(edit.replace("EnterAdmin.action?model=","").toUpperCase());
				//修改iframe的src
				$("#eidtFrame").attr("src",edit);
			}
			$(function() {
				$(".nav-system-home.active").click(function(){
					//修改选中的选项，使操作item更明显
					$(".select").removeClass("select").children("a").css("color","#333");
					$(this).addClass("select").children("a").css("color","#347aeb");
				});
				$(".carousel-control").click(function() {
					if ($(this).attr("data-slide") == 'prev') {
						if ($(".item.inshow").prev(".item").length == 0) {
							//不存在前一个item
							$(".item:last").addClass("next");
						} else {
							//存在前一个item
							$(".item.inshow").prev(".item").addClass("next");
						}
					} else {
						if ($(".item.inshow").next(".item").length == 0) {
							//不存在后一个item
							$(".item:first").addClass("next");
						} else {
							//存在后一个item
							$(".item.inshow").next(".item").addClass("next");
						}
					}
					$(".item.next").css("display","block");
					$(".item.inshow").css("display","none");
					$(".item.inshow").removeClass("inshow");
					$(".item.next").removeClass("next").addClass("inshow");
				});
			});
		</script>
	</head>
	<body class="index" style="zoom: 1;">
		<div style="position:relative;width:70%;left:15%">
			<header id="header" class="clearfix">
			<div id="headTitle">
				<div class="wrapper">
					<div id="siteName">
						<h2>日死尼玛</h2>
					</div>
					<div id="siteSlogan" style="right:10px;position: absolute;">
						<a href="Exit.action">退出啦</a>
					</div>
				</div>
			</div>
			<div id="headNav">
				<div class="wrapper"></div>
			</div>
			</header>
			<nav id="navbar" class="navbar" role="navigation">
			<div class="collapse navbar-collapse" id="navbarCollapse">
				<ul class="nav navbar-nav">
					<li class="nav-system-home active select">
						<a style="color:#347aeb" href="javascript:changeEdit('EnterAdmin.action?model=user')">操作管理员</a>
					</li>
					<li class="nav-system-home active">
						<a href="javascript:changeEdit('EnterAdmin.action?model=article')">操作文章</a>
					</li>
					<li class="nav-system-home active">
						<a href="javascript:changeEdit('EnterAdmin.action?model=ArtAndProClass')">操作分类</a>
					</li>
					<li class="nav-system-home active">
						<a href="javascript:changeEdit('EnterAdmin.action?model=product')">操作产品</a>
					</li>
				</ul>
			</div>
			</nav>
			<h2 id="tableHead" style="text-align: center;">USER</h2>
			<iframe id="eidtFrame" src="EnterAdmin.action?model=user" style="width:100%;min-height:500px"></iframe>
			<%@ include file="foot.jsp"%>
		</div>
	</body>
</html>
